package com.jiayang.hhotel.bean;

import java.io.Serializable;
import java.util.List;

import cn.droidlover.xdroidmvp.net.IModel;

/**
 * Created by Administrator on 2017/5/25 0025.
 * 结账退房数据类
 */

public class CheckOutModel implements IModel,Serializable {


    /**
     * state : 9
     * info :
     * pTransDetailListDtos : [{"date":"2012-06-25","trncode":14,"trndescp":"四季厅","amount":260,"comment":"309中餐厅,台号:022,班次:1,操作员:std"},{"date":"2012-06-25","trncode":14,"trndescp":"四季厅","amount":153,"comment":"309中餐厅,台号:014,班次:1,操作员:std"}]
     */

    private int state;
    private String info;
    private List<PTransDetailListDtosBean> pTransDetailListDtos;

    @Override
    public boolean isNull() {
        return false;
    }

    @Override
    public boolean isAuthError() {
        return false;
    }

    @Override
    public boolean isBizError() {
        return false;
    }

    @Override
    public String getErrorMsg() {
        return null;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public String getInfo() {
        return info;
    }

    public void setInfo(String info) {
        this.info = info;
    }

    @Override
    public String toString() {
        return "CheckOutModel{" +
                "state=" + state +
                ", info='" + info + '\'' +
                ", pTransDetailListDtos=" + pTransDetailListDtos +
                '}';
    }

    public List<PTransDetailListDtosBean> getPTransDetailListDtos() {
        return pTransDetailListDtos;
    }

    public void setPTransDetailListDtos(List<PTransDetailListDtosBean> pTransDetailListDtos) {
        this.pTransDetailListDtos = pTransDetailListDtos;
    }

    public static class PTransDetailListDtosBean {
        /**
         * date : 2012-06-25
         * trncode : 14
         * trndescp : 四季厅
         * amount : 260
         * comment : 309中餐厅,台号:022,班次:1,操作员:std
         */

        private String date;
        private int trncode;
        private String trndescp;
        private double amount;
        private String comment;

        public String getDate() {
            return date;
        }

        public void setDate(String date) {
            this.date = date;
        }

        public int getTrncode() {
            return trncode;
        }

        public void setTrncode(int trncode) {
            this.trncode = trncode;
        }

        public String getTrndescp() {
            return trndescp;
        }

        public void setTrndescp(String trndescp) {
            this.trndescp = trndescp;
        }

        public double getAmount() {
            return amount;
        }

        public void setAmount(double amount) {
            this.amount = amount;
        }

        public String getComment() {
            return comment;
        }

        public void setComment(String comment) {
            this.comment = comment;
        }

        @Override
        public String toString() {
            return "PTransDetailListDtosBean{" +
                    "date='" + date + '\'' +
                    ", trncode=" + trncode +
                    ", trndescp='" + trndescp + '\'' +
                    ", amount=" + amount +
                    ", comment='" + comment + '\'' +
                    '}';
        }
    }
}
